package com.itheima.spring.Dao.impl;

import com.itheima.spring.Dao.BookDao;

import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.Set;

public class BookDaoImpl implements BookDao {
    private String name;
    private int age;
    private List<Integer> list;
    private Set<String> set;
    private Map<String,Integer> map;
    private Properties properties;
    public BookDaoImpl(String name, int age) {
        this.name = name;
        this.age = age;
    }
    public BookDaoImpl() {
    }

    public void save() {
        System.out.println("bookDaoImpl save");
        System.out.println("name:"+name+" age:"+age);
        System.out.println("list:"+list);
        System.out.println("set:"+set);
        System.out.println("map:"+map);
        System.out.println("properties:"+properties);
    }
    public void setName(String name) {
        this.name = name;
    }
    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public int getAge() {
        return age;
    }

    public List<Integer> getList() {
        return list;
    }

    public void setList(List<Integer> list) {
        this.list = list;
    }

    public Set<String> getSet() {
        return set;
    }

    public void setSet(Set<String> set) {
        this.set = set;
    }

    public Map<String, Integer> getMap() {
        return map;
    }

    public void setMap(Map<String, Integer> map) {
        this.map = map;
    }

    public Properties getProperties() {
        return properties;
    }

    public void setProperties(Properties properties) {
        this.properties = properties;
    }
}
